package com.ruoyi.basedata.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分区关联-电、水关联对象 electricity_area_zone_join
 * 
 * @author gdqt
 * @date 2025-03-06
 */
@TableName("electricity_area_zone_join")
public class ElectricityAreaZoneJoin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 平台表单自增主键 */
    @TableId(value="id",type = IdType.AUTO)
    private Long id;

    /** 租户ID */
    @Excel(name = "租户ID")
    @TableField("tenant_id")
    private String tenantId;

    /** 分区ID */
    @Excel(name = "分区ID")
    @TableField("area_id")
    private String areaId;

    /** 分区名字 */
    @Excel(name = "分区名字")
    @TableField("area_name")
    private String areaName;

    /** 设备编号 */
    @Excel(name = "设备编号")
    @TableField("terminal_id")
    private String terminalId;

    /** 监测对象（自定义） */
    @Excel(name = "监测对象", readConverterExp = "自=定义")
    @TableField("terminal_name")
    private String terminalName;

    /** 设备用途：1、流量计 2、压力计 3、出量表 4、进量表 */
    @Excel(name = "设备用途：1、流量计 2、压力计 3、出量表 4、进量表")
    @TableField("used")
    private String used;

    /** 挂接类型：1、电表，2、水表 */
    @Excel(name = "挂接类型：1、电表，2、水表")
    @TableField("hook_type")
    private Long hookType;

    /** 终端使用状态(0-停用，1-使用） */
    @Excel(name = "终端使用状态(0-停用，1-使用）")
    @TableField("terminal_mark")
    private Long terminalMark;

    /** 位置识别编号 */
    @Excel(name = "位置识别编号")
    @TableField("location_nb")
    private String locationNb;

    /** 停用时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "停用时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("down_time")
    private Date downTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTenantId(String tenantId) 
    {
        this.tenantId = tenantId;
    }

    public String getTenantId() 
    {
        return tenantId;
    }
    public void setAreaId(String areaId) 
    {
        this.areaId = areaId;
    }

    public String getAreaId() 
    {
        return areaId;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setTerminalId(String terminalId) 
    {
        this.terminalId = terminalId;
    }

    public String getTerminalId() 
    {
        return terminalId;
    }
    public void setTerminalName(String terminalName) 
    {
        this.terminalName = terminalName;
    }

    public String getTerminalName() 
    {
        return terminalName;
    }
    public void setUsed(String used) 
    {
        this.used = used;
    }

    public String getUsed() 
    {
        return used;
    }
    public void setHookType(Long hookType) 
    {
        this.hookType = hookType;
    }

    public Long getHookType() 
    {
        return hookType;
    }
    public void setTerminalMark(Long terminalMark) 
    {
        this.terminalMark = terminalMark;
    }

    public Long getTerminalMark() 
    {
        return terminalMark;
    }
    public void setLocationNb(String locationNb) 
    {
        this.locationNb = locationNb;
    }

    public String getLocationNb() 
    {
        return locationNb;
    }
    public void setDownTime(Date downTime) 
    {
        this.downTime = downTime;
    }

    public Date getDownTime() 
    {
        return downTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("tenantId", getTenantId())
            .append("areaId", getAreaId())
            .append("areaName", getAreaName())
            .append("terminalId", getTerminalId())
            .append("terminalName", getTerminalName())
            .append("used", getUsed())
            .append("hookType", getHookType())
            .append("terminalMark", getTerminalMark())
            .append("locationNb", getLocationNb())
            .append("downTime", getDownTime())
            .toString();
    }
}
